package arrays;
//TODO:
// Create Accesors and Mutators
public class myPhraseOMatic {

 private String phrase;
 private int i = 5;
 private int rand1 = 0;
 private int rand2 = 0;
 private int rand3 = 0;
 private int rand4 = 0;
 
    public myPhraseOMatic() 
    {
     phraseIt();   
    }
    
    public void phraseIt()
    {
        //public static void main(String[] args) {
     
    String[] wordListOne = {"24/7", "multi-Tier", "30,000 foot", "B-to-B",
                "win-win", "front-end", "web-based", "pervasive", "smart", "six-sigma",
                "critical-path", "dynamic"};
        String[] wordListTwo = {"empowered", "sticky", "value-added", "oriented", "centric", 
                "distributed", "clustered", "branded", "outside-the-box", "positioned", "networked", 
                "focused", "leveraged", "aligned", "targeted", "shared", "cooperative", "accelerated"};
        String[] wordListThree = {"process", "tipping-point", "solution", "architecture", "core competency",
                "strategy", "mindshare", "portal", "space", "vision", "paradigm", "mission"};
        int oneLength = wordListOne.length;
        int twoLength = wordListTwo.length;
        int threeLength = wordListThree.length;
        rand4 = (int) (Math.random() * oneLength);
        System.out.println("rand4 is " + rand4);
        //   while(i > 0)

while (rand4 > 4)
    //  for(int x = 0; x<5;x++)            
        {
  rand1 = (int) (Math.random() * oneLength);
        rand2 = (int) (Math.random() * twoLength);
        rand3 = (int) (Math.random() * threeLength);
                
        if(rand1 == 9)
        {
        phrase = wordListOne[rand1] + " " + wordListTwo[rand2] + " " + wordListThree[rand3];
        System.out.println("What we need is a " + phrase);
        System.out.println("rand1 is " + rand1  + "Word is " + wordListOne[rand1]);
        System.out.println("rand2 is " + rand2 + "Word is " + wordListTwo[rand2]);
        System.out.println("rand3 is " + rand3 + "Word is " + wordListThree[rand3]);
        }
        else
        {
        System.out.println("No Hit " + rand1);
        }
        
        rand4 = rand4 - 1;
        System.out.println("rand4 is " + rand4);
        }

    }
}
